home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 October: Windmill on DISC / ADC Developer CD (1993-10) (''Windmill On DISC'')_iso / Dev.CD Oct 93.iso / System Software / U.S. System Software / System 7 Pro™ Beta 11 / Development Tools / Sample Code / Messaging Service Access Module / Internet PMSAM / Internet PMSAM source / pop.protocol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-14  |  938 b   |  20 lines  |  [TEXT/MPS ]

  1. #pragma once
  2. #define __GW_EXTERNAL__
  3.  
  4. #ifndef __GW_POPTYPES__
  5. #include "pop.types.h"
  6. #endif
  7.  
  8. OSErr POP_InitiateConnection(unsigned long popAddress,unsigned short popPort,char *user,char *password,unsigned long *connID);
  9. OSErr POP_GetDropStats(unsigned long connID,short *numMessages,long *messageSize);
  10. OSErr POP_GetMessageIDs(unsigned long connID,TMsgIDList *messageIDList,short *numMessageIDs);
  11. OSErr POP_GetMessage(unsigned long connID,TMsgID messageID,Ptr *messageData);
  12. OSErr POP_DeleteMessage(unsigned long connID,TMsgID messageID);
  13. OSErr POP_CloseConnection(unsigned long connID);
  14.  
  15. OSErr POP_Command(unsigned long connID,char *command,Ptr *response,unsigned long *responseLength);
  16. OSErr POP_GetTextToTerminator(unsigned long connID,Ptr *response,unsigned long *responseLength);
  17. OSErr POP_GetTextToCRLF(unsigned long connID,Ptr *response,unsigned long *responseLength);
  18.  
  19. void MessageIDToString(TMsgID messageID,char *messageIDStr);
  20.